// 表单类别选项
export const FORM_TYPE_OPTIONS = [
  { label: '糖尿病', value: 1 },
  { label: '高血压', value: 2 },
  { label: '心脏病', value: 3 },
  { label: '其他', value: 4 }
] as const

// 表单启用状态选项
export const FORM_STATUS_OPTIONS = [
  { label: '启用', value: 1 },
  { label: '禁用', value: 0 }
] as const

// 根据type值获取对应的typeName
export const getTypeName = (type: number): string => {
  const option = FORM_TYPE_OPTIONS.find(opt => opt.value === type)
  return option ? option.label : '其他'
}

// 根据delFlag值获取对应的状态名称
export const getStatusName = (delFlag: number): string => {
  const option = FORM_STATUS_OPTIONS.find(opt => opt.value === delFlag)
  return option ? option.label : '禁用'
} 